package Composite_Pattern.Education;

// -*-coding:utf-8 -*-
//人员：刘陆鑫
//班级：19软3
//学号；2019110218
public class Client {
    public static void main(String[] args) {
        AbstractOffice office1,office21,office22,office23,
                office31,office32,office33,office34,office41,office42,office43,office44;
        office1=new Office_m("北京总部");
        office21=new Office_low("教务办公室");
        office22=new Office_m("湖南分校");
        office23=new Office_low("行政办公室");
        office31=new Office_low("教务办公室");
        office32=new Office_m("长沙教学点");
        office33=new Office_m("湘谭教学点");
        office34=new Office_low("行政办公室");
        office41=new Office_low("教务办公室");
        office42=new Office_low("行政办公室");
        office43=new Office_low("教务办公室");
        office44=new Office_low("行政办公室");
        office32.add(office41);
        office32.add(office42);
        office33.add(office43);
        office33.add(office44);
        office22.add(office31);
        office22.add(office32);
        office22.add(office33);
        office22.add(office34);
        office1.add(office21);
        office1.add(office22);
        office1.add(office23);
        office1.Notice();
    }
}
